Sets the playback position of a sample, MOD music, or CD channel.
BOOL WINAPI BASS_ChannelSetPosition( |
Parameters
handle | The channel handle... a HCHANNEL, HMUSIC, or CDCHANNEL. | ||||||
pos | The position, as follows.
|
Return value
If succesful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | handle is not a valid channel. |
BASS_ERROR_CDINIT | BASS_CDInit has not been successfully called. |
BASS_ERROR_POSITION | The requested position is illegal. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
Example
To set the position of a MOD music to row 20 of order 10.
BASS_ChannelSetPosition(a_music,MAKELONG(10,20)); |
See also
BASS_ChannelGetPosition, BASS_ChannelIsActive